package com.company.hrmadmin.modules.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.company.hrmadmin.modules.domain.College;
import com.company.hrmadmin.modules.service.CollegeService;
import com.company.hrmadmin.modules.mapper.CollegeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Xmirror
 * @description 针对表【dic_college(学校信息表)】的数据库操作Service实现
 * @createDate 2022-03-18 15:39:18
 */
@Service
public class CollegeServiceImpl extends ServiceImpl<CollegeMapper, College>
        implements CollegeService {

    @Resource
    private CollegeMapper collegeMapper;

    /**
     * 根据ID获取学校的ID
     *
     * @param collegeId 学校ID
     * @return 学校
     */
    @Override
    public College getCollegeById(Integer collegeId) {
        return collegeMapper.selectById(collegeId);
    }
}




